//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.andromeda.androbench2;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.database.sqlite.SQLiteDatabase.CursorFactory;

public class HistoryDB extends SQLiteOpenHelper {
    public HistoryDB(Context var1, String var2, CursorFactory var3) {
        super(var1, "history.db", (CursorFactory)null, 9);
    }

    public void onCreate(SQLiteDatabase var1) {
        var1.execSQL("drop table if exists history");
        var1.execSQL("create table history (_id INTEGER PRIMARY KEY AUTOINCREMENT," +
                " date TEXT, " +
                "target TEXT, " +
                "filesize_read INTEGER," +
                " filesize_write INTEGER, " +
                "buffersize_seq INTEGER, " +
                "buffersize_rnd INTEGER, " +
                "use_buffer TEXT, " +
                "avg_mbps_sr DOUBLE, " +
                "avg_mbps_sw DOUBLE," +
                " avg_mbps_rr DOUBLE," +
                " avg_iops_rr DOUBLE," +
                " avg_mbps_rw DOUBLE, " +
                "avg_iops_rw DOUBLE, " +
                "avg_perf_sqlite_insert DOUBLE," +
                " avg_perf_sqlite_select DOUBLE, " +
                "avg_perf_sqlite_update DOUBLE, " +
                "avg_perf_sqlite_delete DOUBLE, " +
                "one_filesize INTEGER, " +
                "num_thread INTEGER, " +
                "transaction_size INTEGER, " +
                "journal_mode TEXT, " +
                "index_usage INTEGER);");
    }

    public void onUpgrade(SQLiteDatabase var1, int var2, int var3) {
        var1.execSQL("drop table if exists history");
        this.onCreate(var1);
    }
}
